package com.yoyo.itravel.bean;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description 景点门票库存实体类
 * 
 * @Author HZX
 * @Date 2020/6/23 21:00
 * @Version 1.0
 */
@Table(name = "tb_sight_ticket_stock")
public class SightTicketStock {

    @Id
    @Column(name = "ticketStockId")
    private String ticketStockId; // 景点门票库存id
    @Column(name = "initStockNum")
    private Integer initStockNum; // 原始库存数量
    @Column(name = "nowStockNum")
    private Integer nowStockNum; // 当天实时库存数量
    @Column(name = "date")
    private Date date; // 当天日期
    @Column(name = "detailTypeId")
    private String detailTypeId; // 景点门票详细类型id
    private TicketTypeDetail ticketTypeDetail; // 景点门票详细类型对象

    public SightTicketStock() {
    }

    public SightTicketStock(String detailTypeId) {
        this.detailTypeId = detailTypeId;
    }

    public SightTicketStock(Date date, String detailTypeId) {
        this.date = date;
        this.detailTypeId = detailTypeId;
    }

    public SightTicketStock(String ticketStockId, Integer nowStockNum) {
        this.ticketStockId = ticketStockId;
        this.nowStockNum = nowStockNum;
    }

    public SightTicketStock(String ticketStockId, Integer initStockNum, Integer nowStockNum, Date date, String detailTypeId) {
        this.ticketStockId = ticketStockId;
        this.initStockNum = initStockNum;
        this.nowStockNum = nowStockNum;
        this.date = date;
        this.detailTypeId = detailTypeId;
    }

    public SightTicketStock(String ticketStockId, Integer initStockNum, Integer nowStockNum, Date date, String detailTypeId, TicketTypeDetail ticketTypeDetail) {
        this.ticketStockId = ticketStockId;
        this.initStockNum = initStockNum;
        this.nowStockNum = nowStockNum;
        this.date = date;
        this.detailTypeId = detailTypeId;
        this.ticketTypeDetail = ticketTypeDetail;
    }

    public String getTicketStockId() {
        return ticketStockId;
    }

    public void setTicketStockId(String ticketStockId) {
        this.ticketStockId = ticketStockId;
    }

    public Integer getInitStockNum() {
        return initStockNum;
    }

    public void setInitStockNum(Integer initStockNum) {
        this.initStockNum = initStockNum;
    }

    public Integer getNowStockNum() {
        return nowStockNum;
    }

    public void setNowStockNum(Integer nowStockNum) {
        this.nowStockNum = nowStockNum;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getDetailTypeId() {
        return detailTypeId;
    }

    public void setDetailTypeId(String detailTypeId) {
        this.detailTypeId = detailTypeId;
    }

    public TicketTypeDetail getTicketTypeDetail() {
        return ticketTypeDetail;
    }

    public void setTicketTypeDetail(TicketTypeDetail ticketTypeDetail) {
        this.ticketTypeDetail = ticketTypeDetail;
    }

    @Override
    public String toString() {
        return "SightStock{" +
                "ticketStockId='" + ticketStockId + '\'' +
                ", initStockNum=" + initStockNum +
                ", nowStockNum=" + nowStockNum +
                ", date=" + date +
                ", detailTypeId='" + detailTypeId + '\'' +
                ", ticketTypeDetail=" + ticketTypeDetail +
                '}';
    }
}
